package hku.cs.lunuo.cfg;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class CoverToGraph {
	public static void main(String args[]) throws IOException {
		File f = new File(args[0]);

		int methodNumber = 10;
		BufferedReader br = new BufferedReader(new FileReader(f));

		String s;

		List<List<Float>> data = new ArrayList<List<Float>>(methodNumber);
		for (int i = 0; i < methodNumber; i++) {
			data.add(new ArrayList<Float>());
		}

		int mm = 0;

		while ((s = br.readLine()) != null) {
			String[] xx = s.split("\t");
			if(xx.length!=methodNumber)
				System.out.println();
			for (int i = 0; i < xx.length; i++) {
				data.get(i).add(Float.valueOf(xx[i]));
			}
			mm++;
		}
		for (int i = 0; i < methodNumber; i++) {
			Collections.sort(data.get(i));
		}

		for (int i = 0; i <=100; i++) {
			for (int j = 0; j < methodNumber; j++) {
				List<Float> tmp = data.get(j);
				int n = 0;
				for (n = 0; n < mm; n++) {
					if (tmp.get(n) * 100 > i) {
						break;
					}
				}
				System.out.print((float) (n) / mm + " ");
			}
			System.out.println();
		}

	}
}
